home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct01070.geo / 00169.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  3.4 KB  |  163 lines

  1. on startMovie
  2.   Set_CDcounter(6)
  3.   initLesson()
  4.   CheckForTagWd()
  5. end
  6.  
  7. on HideLastStep
  8.   if Get_NEXT() = 5 then
  9.     repeat with v = 31 to 33
  10.       set the puppet of sprite v to 0
  11.       UpdateCursors(v, 0)
  12.     end repeat
  13.   else
  14.     if (Get_NEXT() > 5) and (Get_NEXT() < 10) then
  15.       set the puppet of sprite 11 to 0
  16.       UpdateCursors(11, 0)
  17.     end if
  18.   end if
  19.   unLoadCast()
  20.   RestoreHilites()
  21.   repeat with i = 1 to 6
  22.     set the visible of sprite (19 + i) to 1
  23.   end repeat
  24. end
  25.  
  26. on TheinitCursor
  27.   initCursorCastNum()
  28.   initCursorList(1)
  29.   set CursorCastNum to getCursor(2)
  30.   cursor([CursorCastNum, CursorCastNum + 1])
  31. end
  32.  
  33. on checkScreenStatus
  34.   CheckRollOver()
  35.   CheckSnakeStatus()
  36.   go(the frame)
  37. end
  38.  
  39. on BlinkNext
  40.   if (the timer > getTimer()) and not soundBusy(2) then
  41.     startTimer()
  42.     if the name of cast the castNum of sprite get_NEXTSprite() = "NEXT" then
  43.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT_E"
  44.     else
  45.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
  46.     end if
  47.   end if
  48. end
  49.  
  50. on PressBtn theBtn
  51.   Set_PressedLast(theBtn)
  52.   switchButt(Get_AnsSprite() + theBtn - 1, "down" & theBtn, "HandleBtn" && theBtn)
  53. end
  54.  
  55. on handleCorse CastName
  56.   global theCastName
  57.   set theCastName to CastName
  58.   set the visible of sprite 11 to 0
  59.   GoNext()
  60. end
  61.  
  62. on GoNext
  63.   if not get_Disabled() then
  64.     if Get_NEXT() = 8 then
  65.       DisableBTNS()
  66.     end if
  67.     if Get_NEXT() = 4 then
  68.       unLoadCast(33, 114)
  69.     end if
  70.     if Get_NEXT() = 5 then
  71.       DisableBTNS()
  72.       repeat with v = 31 to 33
  73.         set the puppet of sprite v to 0
  74.         UpdateCursors(v, 0)
  75.       end repeat
  76.       set the visible of sprite 11 to 0
  77.     end if
  78.     sound stop 2
  79.     if Get_NEXT() = 9 then
  80.       GoNextMovie()
  81.     else
  82.       go("t" & Get_NEXT())
  83.     end if
  84.     Set_NEXT(Get_NEXT() + 1)
  85.   end if
  86. end
  87.  
  88. on stopMovie
  89.   sound stop 1
  90.   unLoad()
  91.   setEmptyCursor()
  92. end
  93.  
  94. on GoNextMovie
  95.   PlaySound("GOSOUND.SO1")
  96.   SaveHilite()
  97.   Add_CDcounter(1)
  98.   set cdNum to Get_CDcounter()
  99.   set movieName to item cdNum of Get_CurrentSnakeScreens()
  100.   go("INIT" & Get_ScreenSubject(), movieName & ".GEO")
  101. end
  102.  
  103. on playTheTSound theTSnd
  104.   PlaySound("NCT01070.s0" & theTSnd)
  105. end
  106.  
  107. on checkDoubleClick spriteNum
  108.   global firstClickedSprite
  109.   set theClick to 0
  110.   if not get_oneClick() then
  111.     set firstClickedSprite to spriteNum
  112.     set_oneClick(1)
  113.     set_lastClickTimer(the ticks)
  114.   else
  115.     if get_oneClick() and ((the ticks - get_lastClickTimer()) < 20) and (firstClickedSprite = spriteNum) then
  116.       set_lastClickTimer(0)
  117.       set theClick to 1
  118.     else
  119.       if (the ticks - get_lastClickTimer()) > 19 then
  120.         set firstClickedSprite to spriteNum
  121.         set_oneClick(1)
  122.         set_lastClickTimer(the ticks)
  123.       end if
  124.     end if
  125.   end if
  126.   return theClick
  127. end
  128.  
  129. on set_oneClick bool
  130.   global oneClick
  131.   set oneClick to bool
  132. end
  133.  
  134. on get_oneClick
  135.   global oneClick
  136.   return oneClick
  137. end
  138.  
  139. on set_lastClickTimer int
  140.   global lastClickTimer
  141.   set lastClickTimer to int
  142. end
  143.  
  144. on get_lastClickTimer
  145.   global lastClickTimer
  146.   return lastClickTimer
  147. end
  148.  
  149. on blinkHiLight
  150.   global Localtimer, redBoxSprite
  151.   if (the timer > 35) and not soundBusy(2) and (Localtimer < 2) then
  152.     startTimer()
  153.     if the visible of sprite redBoxSprite then
  154.       set the visible of sprite redBoxSprite to 0
  155.     else
  156.       puppetSound("highlight1")
  157.       updateStage()
  158.       set the visible of sprite redBoxSprite to 1
  159.       set Localtimer to 1 + Localtimer
  160.     end if
  161.   end if
  162. end
  163.